package com.his.service;

import com.his.pojo.DrugInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【drug_info】的数据库操作Service
* @createDate 2024-10-24 10:12:17
*/
public interface DrugInfoService extends IService<DrugInfo> {

    /*查询某个患者抓取的药品列表*/
    public List<DrugInfo> queryDrugRegisterListService(Integer registerId);

    /*实现药房发药,修改库存和处方状态*/
    public void updatePreDrugService(Integer pid, Integer did, Integer drugNumber);

    /*实现药品信息分页查询*/
    public Map<String,Object> queryDurgPageService(Integer pageNum,Integer pageSize
            ,DrugInfo drugInfo);

    /*实现退药*/
    public void backPreDrugService(Integer pid, Integer did, Integer drugNumber);

}
